<?php foreach($photos as $photo ):?>
    <div class="">
    <?php echo image_tag(
                    '/images/gallery/tiny/' . $photo->getUname()
                    , array(
                        'border' => '0'
                        , 'alt' => $news->getName()
                        , 'title' => $news->getName()
                    )) ?>
    </div>
        <?php echo link_to(
                        image_tag(
                            'delete.png'
                            , array(
                                'border' => 0
                            )
                        )
                        , 'news/deleteimg?id=' . $news->getId() . '&uname=' . $photo->getUname()
                        , array(
                            'confirm' => __('Are you sure?!')
                        )
        ) ?>
<?php endforeach; ?>
<?php if( $allowPhoto ): ?>

    <?php echo input_file_tag('news[photo]') ?>

<?php endif; ?>
